babl.db: do not use strtod - it is locale dependent
authorØyvind Kolås <pippin@gimp.org>
Mon, 14 Nov 2016 23:33:41 +0000 (00:33 +0100)
committerØyvind Kolås <pippin@gimp.org>
Mon, 14 Nov 2016 23:33:46 +0000 (00:33 +0100)
babl/babl.c

index 7209c8fd81f9a719c860b50bf668876b8a9876be..b91b3acdc82c2229e67bd503386e9d3c1242ad03 100644 (file)
@@ -334,11 +334,11 @@ static void babl_init_db (const char *path)
             {
               if (!strncmp (token2, "error=", 6))
               {
-                babl->fish.error = strtod (token2 + 6, NULL);
+                babl->fish.error = babl_parse_double (token2 + 6);
               }
               else if (!strncmp (token2, "cost=", 5))
               {
-                babl->fish_path.cost = strtod (token2 + 5, NULL);
+                babl->fish_path.cost = babl_parse_double (token2 + 5);
               }
               else if (!strncmp (token2, "pixels=", 7))
               {